﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TrayCheckControl
{
    public class CarrierSet : System.ComponentModel.INotifyPropertyChanged
    {
        public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
        private void OnPropertyChanged(string propertyName)
        {
            if (null != this.PropertyChanged)
            {
                this.PropertyChanged(this,
                    new System.ComponentModel.PropertyChangedEventArgs(propertyName));
            }
        }

        private string idType = "CAR_INV";
        private string station = "CS-LOAD";
        private string seperator = ",";
        private int alarmValue = 5;
        public string IdType
        {
            get => this.idType;
            set
            {
                this.idType = value;
                this.OnPropertyChanged("IdType");
            }
        }
        public string Station
        {
            get => this.station;
            set
            {
                this.station = value;
                this.OnPropertyChanged("Station");
            }
        }
        public string Seperator
        {
            get => this.seperator;
            set
            {
                this.seperator = value;
                this.OnPropertyChanged("Seperator");
            }
        }  
        public int AlarmValue
        {
            get => this.alarmValue;
            set
            {
                this.alarmValue = value;
                this.OnPropertyChanged("AlarmValue");
            }
        }        
        public void Copy(CarrierSet set)
        {
            this.IdType = set.idType;
            this.Station = set.station;
            this.Seperator = set.seperator;
        }
    }
}
